import { IConversation } from "./domain/IConversation";
import { IMessage } from "./domain/IMessage";

export interface IStoreMessageService {
    CreateConv(conv: IConversation): Promise<IConversation>;
    UpdateConvTitle(id: string, title: string): Promise<void>;
    QueryConvs(params): Promise<IConversation[]>;
    GetMessagesByConvId(convId: string): Promise<IMessage[]>;
    CleanMessageByConvId(convId: string): Promise<void>;
    AddToChatHistory(message: IMessage): Promise<IMessage>;
    GetConversationById(id: string): Promise<IConversation>;
}